<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 内容 -->
		<div style="width: 719px; height: 489px;" id="content">
			<div style="height: 30px;" id="pronav"><p>商品管理&gt;添加分类</p></div>
			<div style="width: 719px;" id="prolist">
				<form action="categoryadd.do" method="post">
                <table>
					<tr>
		<th colspan="2">增加分类</th>
		</tr>
				<tr>
			<td width="181" height="37" align="right">分类名称：</td>
			<td width="345"><input type="text" name="categoryName" id="categoryName"></td>
		</tr>
				<tr>
			<td height="62" align="right">分类描述：</td>
			<td><input type="text" height="50" width="200" name="categoryDesc" id="categoryDesc"></td>
		</tr>
		<tr>
			<td height="42" align="right">上级分类：</td>
			<td><select id="superiorId"  name="superiorId"   pattern="int" >
        <option value="0">==无上级分类==</option>
        <c:forEach items="${requestScope.categories }" var="category">
          <option value="${category.id }" <c:if test="${requestScope.superiorId eq category.id }" >selected="selected" </c:if> >${category.categoryName }</option>
          </c:forEach>
        </select>
			
		</tr>
		<tr>
			<td align="right"><input type="submit" name="submit " id="submit" value="添加 "></td>
			<td><input type="reset" name="reset " id="reset" value="重置 "></td>
		</tr>
				
				</table>
                </form>
			</div>
			
		</div>
	<!-- 内容结束 -->
